/**    
* @Title: EnumOkexFutureOrderType.java
* @Package: org.vdalf.gsgz.enums
* @author vDalf 2020-09-28 14:38:20 下午2:38:20
* @Copyright © 2020 vDalf Block-Chain Foundation (In Preparation Non-Governmental Organization) All rights reserved.
*/
package org.vdalf.gsgz.enums;

/**    
* @Title: EnumOkexFutureOrderType.java
* @Package: org.vdalf.gsgz.enums
* @Description: 
* @author vDalf 2020-09-28 14:38:20 下午2:38:20
*/
public enum EnumOkexFutureOrderType {
	/**
	1:开多
	2:开空
	3:平多
	4:平空
	**/
	开多("1", "开多"),
	开空("2", "开空"),
	平多("3", "平多"),
	平空("4", "平空"),
	;

	private String code;
	private String message;

	private EnumOkexFutureOrderType(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public static EnumOkexFutureOrderType getByCode(String c) {
		return java.util.stream.Stream.of(EnumOkexFutureOrderType.values()).filter(t -> t.code.equals(c)).findAny().orElse(null);
	}

	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
}
